package com.jmp.api;

import com.jmp.autocofiguration.JmpBootApplication;
import com.jmp.push.PushAutoConfiguration;
import com.jmp.sms.SmsAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

import java.util.TimeZone;

/**
 * 第三方服务中心
 * 基础服务层，禁止调用其他服务模块
 * 短信
 * 推送
 * 海报模板
 * 浏览记录（see record）
 * IM
 */
@EnableHystrix
@EnableFeignClients(basePackages = "com.jmp.feign")
@EnableEurekaClient
@SpringBootApplication(scanBasePackages = {"com.jmp.api", "one.stand"}, exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@JmpBootApplication
@Import({
        SmsAutoConfiguration.class,
        PushAutoConfiguration.class
})
public class OneThirdPartyApplication {

    public static void main(String[] args) {
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
        SpringApplication.run(OneThirdPartyApplication.class, args);
    }

}
